rendering a drawing